{include file="common/_meta" /}
<title>用户管理</title>
<meta name="keywords" content="李志立，lizhilimaster@163.com">
<meta name="description" content="李志立，lizhilimaster@163.com">
</head>
<body>
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户中心 <span class="c-gray en">&gt;</span>
		用户管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);"
		 title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a></nav>
	<div class="page-container">
		<div class="text-c">
			<form action="" method="get">
				<input type="text" class="input-text" style="width:250px" placeholder="输入用户名或手机号" value="{$key}" name="key">
				<button type="submit" class="btn btn-success radius"><i class="Hui-iconfont">&#xe665;</i> 搜用户</button>
			</form>
		</div>
		<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l">


		
		
		
		
		</span> <span class="r">
		
		
		共有数据：<strong>{$count1}</strong>
				条</span> </div>
		<div class="mt-20">
			<table class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">
						<th width="20">ID</th>
						<th width="100">头像</th>
						<th width="50">用户名</th>
						<th width="50">上一级</th>
					
					 	<th width="90">手机</th>

						<th width="90">加入时间</th>

		
	
						<th width="50">操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="user" id="vo"}
					<tr class="text-c">
						<td>{$vo.id}</td>
						<td>
							{if $vo.avatarUrl}
							<img src="{$vo.avatarUrl}" height="80">
							{else /}
							没有上传头像
							{/if}
						</td>
						<td>{$vo.name ?: $vo.phone}</td>
						<td>{$vo.fname|default='无上一级'}</td>
						
					 	<td>{$vo.phone|default='尚未填写'}</td>
						<td>{$vo.create_time|date='Y-m-d H:i:s'}</td>
						
				
						
						<td class="td-status">
							<button onclick="xuan(this,{$vo.id},'{$vo.phone}')" type="button" class="btn btn-warning  radius">选中</button>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			{$user|raw}
		</div>
	</div>
	{include file="common/_footer" /}
	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript">
		/*用户-添加*/
		function user_add(title, url, w, h) {
			layer_show(title, url, w, h);
		}
		function xuan(obj,id,phone){
			
			$(window.parent.document).find("#user_id").val(id)
			$(window.parent.document).find("#user_phone").val(phone)
			
			
			var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
			parent.layer.close(index); //再执行关闭
		}
		
	</script>
</body>
</html>
